<?php
require_once '../controller.php';
$form = new Form('add_course_form','post');
$form->text("<h2>Add new Course</h2>");
$form->textInput('title','Course Title',array('tabindex'=>'1','required'=>true));
$form->textInput('term','Course Term',array('tabindex'=>'2'),false);
$form->textInput('year','',array('value'=>date('Y'),'size'=>'5','tabindex'=>'3'),false);
$form->textArea('description','Description (optional)',4,20,array('tabindex'=>'4'));
$form->button('add_course_submit','Create',array('type'=>'submit','tabindex'=>'5'),false);
$form->button('add_course_cancel','Cancel',array('type'=>'button','tabindex'=>'6','onclick'=>'closePopup();'),false);
die($form->build());